import { Point } from "../geometry/Point.js";

const positions = new WeakMap();

export function getPosition(el) {
  return positions.get(el) ?? new Point(0, 0);
}

export function setPosition( point) {
  positions.set(point);
  setTransform(point);
}

export function setTransform(offset, scale) {
  const pos = offset || new Point(0, 0); 



  // el.style.transform = `translate3d(${pos.x}px,${pos.y}px,0)${
  //   scale ? ` scale(${scale})` : ""
  // }`;
}
